package org.easy;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


/**
 * 类说明
 *
 * @author YanMing
 * @date 2024/4/29
 */
/**
 * @EnableDiscoveryClient
 * 启用服务的注册发现功能
 */
@Slf4j
// @SpringBootApplication
@EnableDiscoveryClient
//@EnableFeignClients
@EnableDubbo
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class AdminCloudApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(AdminCloudApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("(♥◠‿◠)ﾉﾞ  系统模块启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }
}
